package com.my.structuraltype.mediator.computer;

public class CDDriver extends Colleague {
	
	private String data;

	public CDDriver(Mediator mediator) {
		super(mediator);
	}

	public void operation(String data) {
		System.out.println("insert a CD...");
		this.data = data;
		this.getMediator().change(this);
	}

	/**
	 * @return the data
	 */
	public String getData() {
		return data;
	}
	
	/**
	 * @param data the data to set
	 */
	public void setData(String data) {
		this.data = data;
	}
}
